﻿using MediatR;
using S.Common.ApiResult;
using S.Weaning.Domain;
using S.Weaning.Domain.Dto;

namespace S.Weaning.Read.ApI.Application.Command
{
    public class LambAblactationCommand 
    {
        public class ShowLambAblactationCommand: IRequest<ApiResult<List<LambAblactationDto>>>
        {
            public ShowLambAblactationCommand(string? ddate, string? ear, int dayage, decimal? weightmin, decimal? weightgmax, string? maternal,int page,int size)
            {
                this.Ddate = ddate;
                this.Ear = ear;
                this.Dayage = dayage;
                this.Weightmin = weightmin;
                this.Weightgmax = weightgmax;
                this.Maternal = maternal;
                this.Page = page;
                this.Size = size;

            }
            public string? Ddate { get; set; }
            public string? Ear { get; set; }
            public int Dayage { get; set; }
            public decimal? Weightmin { get; set; }
            public decimal? Weightgmax { get; set; }
            public string? Maternal { get; set; }
            public int Page { get; set; }
            public int Size { get; set; }
        }

        /// <summary>
        /// 羔羊断奶
        /// </summary>
        public class IndexLambAblactationCommand : IRequest<List<LambAblactationDto>>
        {

        }
        /// <summary>
        /// 羔羊断奶反填
        /// </summary>
        public class LambAblactationByIdCommand : IRequest<LambAblactationModel> 
        { 
            public LambAblactationByIdCommand(int id)
            {
                this.id=id;
            }
            public int id { get; set; }

        }



    }

}
